<template>
    <div>
        <h1>购物车</h1>
        <button @click="onClick">点击</button>
    </div>
</template>
<script>
export default {
    methods: {
        onClick(){
            this.$message('asd','dasd',true)
        }
    },
}
</script>